package com.atguigu.admin.service.impl;

import com.atguigu.admin.bean.Dept;
import com.atguigu.admin.mapper.DeptMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ClassName: DeptService
 * Package: com.atguigu.admin.service
 * Description:
 *
 * @Author Root
 * @Create 2023/5/3 16:15
 * @Version 1.0
 */
@Service
public class DeptServiceImpl {
    @Autowired
    private DeptMapper deptMapper;


    public Dept getDeptById(Integer id){
        Dept dept = deptMapper.getDept(id);
        return dept;
    }
}
